package dnl.jexem.watchdog.restarts;

import java.util.List;


public class RestartInfoServiceImpl implements RestartInfoService {

	private RestartInfoDao restartInfoDao;

	public void setRestartInfoDao(RestartInfoDao restartInfoDao) {
		this.restartInfoDao = restartInfoDao;
	}

	@Override
	public void persistRestartInfo(String processName, String originLifeSign) {
		restartInfoDao.persistRestartInfo(processName, originLifeSign);
	}

	@Override
	public List<RestartInfo> getAll(String processName) {
		return restartInfoDao.findAll();
	}

}
